package muyu;


import java.io.Serializable;

/**
 * 千山鸟飞绝，万径人踪灭。
 * 孤舟蓑笠翁，独钓寒江雪。
 *
 * @author: 于其先
 * @date: 2017/9/19
 * @version: 1.0.0
 */

public class BaseResultBean implements Serializable {

    private static final long serialVersionUID = 1L;

    private String msg = "成功";

    private int code = 0;

    public BaseResultBean() {
        super();
    }

    public BaseResultBean(String msg, boolean code) {
        super();
        this.msg = msg;
        this.code = code?0:1;
    }

    public BaseResultBean(Throwable e) {
        super();
        this.msg = e.getMessage();
        this.code = 1;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}